package com.mg.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mg.common.pojo.auto.generate.OrderDetail;
import com.mg.order.pojo.po.OrderDetailPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderDetailMapper extends BaseMapper<OrderDetailPo> {
    int deleteByPrimaryKey(Long id);

    int insert(OrderDetail record);

    int insertSelective(OrderDetail record);

    OrderDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderDetail record);

    int updateByPrimaryKey(OrderDetail record);
    List<OrderDetailPo> getDetailsByOrderId(@Param("oid") Long oid);
    int insertBatch(@Param("orderDetails") List<OrderDetailPo> orderDetailPos);
}